package com.bdqn.t350.ch01.config;

import com.bdqn.t350.ch01.dao.HelloDao;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//@Configuration
//@ConditionalOnClass(HelloDao.class)
//@ConditionalOnClass
public class HelloConfig {

    @Bean
    //@ConditionalOnClass(HelloDao.class)
    //@ConditionalOnBean
    HelloDao helloDao() {
        return new HelloDao();
    }
}
